package com.example.springboot_demo.order;

/**
 * @BelongsProject: springboot_demo
 * @BelongsPackage: com.example.springboot_demo.order
 * @Author: 江岸
 * @CreateTime: 2021-06-06 23:24
 * @Description: 使用状态模式来设计订单流程
 */
public class test {

    public static void main(String[] args) {
        ProductOrder productOrder = new ProductOrder();
        productOrder.setOrderId("1");
        productOrder.setStatus(ActionEnum.SPRING.getName());
        Context context = new Context(productOrder);
        context.fun();

    }
}
